package org.gd.hellojaxb.privat24.regular;

import javax.xml.bind.annotation.*;

@XmlRootElement(name = "answer")
@XmlAccessorType(XmlAccessType.FIELD)
public class StopRegularPayResponse {

    @XmlRootElement(name = "id")
    @XmlAccessorType(XmlAccessType.FIELD)
    @SuppressWarnings("unused")
    public static final class Response {
        @XmlAttribute(name = "err_code")
        private String errorCode;
        @XmlAttribute(name = "err_mess")
        private String errorMessage;

        public Response() {
        }

        public Response(String errorCode, String errorMessage) {
            this.errorCode = errorCode;
            this.errorMessage = errorMessage;
        }

        public String getErrorCode() {
            return errorCode;
        }

        public String getErrorMessage() {
            return errorMessage;
        }
    }

    @XmlElement(name = "id")
    private Response response;

    public StopRegularPayResponse() {
        response = new Response();
    }

    public Response getResponse() {
        return response;
    }
}
